import 'package:flutter/material.dart';
import 'package:get/get.dart';

class CellCard extends StatelessWidget {
  final RxString _time;
  final double _side;
  final AlignmentGeometry _alignment;
  const CellCard(this._time, this._side, this._alignment) : super();

  @override
  Widget build(BuildContext context) {
    return Obx(
      () => ClipRect(
        child: Align(
          alignment: _alignment,
          heightFactor: .5,
          child: Container(
            width: _side,
            height: _side,
            decoration: BoxDecoration(
              color: Theme.of(context).cardColor,
              borderRadius: BorderRadius.circular(_side * 0.09),
            ),
            child: Center(
              child: Text(
                "$_time",
                style: TextStyle(
                  color: Theme.of(context).accentColor,
                  fontSize: _side * 0.89,
                  fontFamily: "gluqlo",
                ),
              ),
            ),
          ),
        ),
      ),
    );
  }
}
